﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Titler.FPControls
{
    /// <summary>
    /// Interaction logic for UserControl1.xaml
    /// </summary>
    public partial class HydLineCtrl : UserControl
    {
        public HydLineCtrl()
        {
            InitializeComponent();
        }

        public string[] TitleReturn()
        {
            System.Windows.Forms.MessageBox.Show("HLCount1" + ", " + HLCount1.Text);

            string[] HLCounts = new string[] { HLCount1.Text, HLCount2.Text, HLCount3.Text };
            string[] HLSizes = new string[] { HLSize1.Text, HLSize2.Text, HLSize3.Text };
            string[] HLThicknesses = new string[] { HLThickness1.Text, HLThickness2.Text, HLThickness3.Text };
            string[] HLMaterials = new string[] { HLMaterial1.Text, HLMaterial2.Text, HLMaterial3.Text };

            string[] TitleReturn = new string[3];

            for (int i = 0; i < 4; i++)
            {
                if (HLCounts[i] != "")
                {
                    TitleReturn[i] = HLCounts[i] + " OFF " + HLSizes[i] + " INCH OD X " + HLThicknesses[i] +
                        " INCH WALL THICKNESS, " + HLMaterials[i];
                }
                else
                    TitleReturn[i] = "";
            }
            
            return TitleReturn;
        }

        private void Control_Add_Item(object sender, RoutedEventArgs e)
        {
            ControlMethods.Control_Add_Item(sender);
        }

    }
}
